using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace TimeTableManagement.Entities
{
	public class Tb_Course
	{
	    public Tb_Course()
		{
			this.Tb_Timetable = new List<Tb_Timetable>();
		}

		public int id { get; set; }
        [Required]
        [Display(Name = "Code")]
		public string code { get; set; }
        [Required]
        [Display(Name = "Name")]
		public string name { get; set; }
        [Required]
        [Display(Name = "Credit")]
		public int credit { get; set; }
        [Required]
        [Display(Name = "Deparment")]
		public int id_department { get; set; }
        [Display(Name = "Type")]
		public Nullable<int> type { get; set; }
        [Display(Name = "Description")]
        [DataType(DataType.MultilineText)]
        [System.Web.Mvc.AllowHtml]
		public string description { get; set; }
		public virtual Tb_Config Tb_Config { get; set; }
		public virtual Tb_Department Tb_Department { get; set; }
		public virtual ICollection<Tb_Timetable> Tb_Timetable { get; set; }
	}
}

